package pay;

import java.util.Scanner;

public class SetWords extends Changer{
	
	Scanner in = new Scanner(System.in);
	
	public SetWords(Decorate decorate) {
		super(decorate);
		System.out.println("可以添加文字：");
	}
	
	public void redEnvelopePay(double money) {
		decorate.redEnvelopePay(money);
	}
	
	public void setWords() {
		System.out.println("请输入需要添加的文字：");
		String words = in.next();
		words += in.nextLine();
		System.out.println("文字：("+words+")添加成功");
	}
	
}
